package com.ybkj.daijia.server.model;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 发票
 */
public class Receipt extends Base {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    private BigDecimal money;    // 发票额度
    private Long memberId;        // 会员Id
    private String memberPhone; // 会员手机号
    private String memberName;  // 会员名称

    private Integer status;    // 状态:未开,已开
    private String type;        // 类型: 服务费,代驾服务费

    private String memo;        // 备注
    private String billingDesc; // 开票备注
    private String number;        // 发票编号
    private Date billingDate;    // 审核开票时间

    private String orderNo; //订单号

    private String carNumber; //车牌号(临时字段)

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public Date getBillingDate() {
        return billingDate;
    }

    public void setBillingDate(Date billingDate) {
        this.billingDate = billingDate;
    }

    public String getBillingDesc() {
        return billingDesc;
    }

    public void setBillingDesc(String billingDesc) {
        this.billingDesc = billingDesc;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public BigDecimal getMoney() {
        if (null == money) {
            return BigDecimal.ZERO;
        }
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getMemberPhone() {
        return memberPhone;
    }

    public void setMemberPhone(String memberPhone) {
        this.memberPhone = memberPhone;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }


    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    @Override
    public String toString() {
        return "Receipt [money=" + money + ", memberId=" + memberId
            + ",  created=" + created + ",  updated=" + updated
            + ", memberPhone=" + memberPhone + ", memberName=" + memberName
            + ", status=" + status + ", type=" + type + ", memo=" + memo
            + ", billingDesc=" + billingDesc + ", number=" + number + "]";
    }


}
